package com.chc.web.live_role.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/01/15/14:51
 * @Description: 业主和角色的关联表
 */
@Data
@TableName("live_role")
public class LiveRole implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long LiveRoleId;

    @NotBlank
    private Long roleId;
    @NotBlank
    private Long userId;
}
